perm filename LAB6.TEX[ARK,TEX] blob
sn#766849 filedate 1984-08-22 generic text, type T, neo UTF8
%%%%% Here are parameters that affect line breaking and hyphenation. %%%%%
%%%%% These are set to create havoc for you, so you'll have to change %%%%%
%%%%% them and make TeX more laid back, to get this file to run. %%%%%
\magnification\magstep1
%%%%%%%%%%%%% All fonts will be magnified one "step".
\font\titlebold=ambx10 scaled\magstep1
%%%% This defines a font "titlebold", magnified an additional step.
\tolerance=0 %Its value was 200
%%%%%%%%% This is the maximum badness that the line setting method
% will tolerate.
\pretolerance=0 % value was 100
%%%%%%%%%%%% If line badness doesn't exceed this value when no words
% are hyphenated, then no words are hyphenated. Make this
% large and TeX will not try to insert hyphens. Set it to
% -1 and an unhyphenated attempt will not be tried.
\hyphenpenalty=10000 % value was 50
%%%%%%%%%%%%% This is the badness for a line break after a discretionary.
% hyphen. Making this large also discourages hyphenation.
\exhyphenpenalty=10000 % value was 50
%%%%%%%%%%%%%%% This is the "hyphenpenalty" after an explicit hyphen.
\linepenalty=1000 % value was 10
%%%%%%%%%%% Every line in a paragraph increases the paragraph badness by
% this amount. Make this large an TeX tries to squeeze as much
% as possible on each line. If this is negative you'll obtain
% long paragraphs with sparsely filled lines.
\uchyph=0 % value was 1
%%%%%% "Upper case hyphen" If this is positive, words beginning with
% capitals can be hyphenated.
\hfuzz=0pt % value was 0.1
%%%%% The amount a line may exceed "hsize" before it becomes "overfull."
\hbadness=0 % value was 1000
%%%%%%%% TeX reports all lines whose badness exceeds this number.
\hyphenation{man-u-script man-u-scripts}
%%%%%%%%%%% This enters words into the "exception dictionary"
\showboxbreadth=1 % value was 4
%%%%%%%%%%%%%% Makes the lst file briefer.
%%%%%%%%%%%%%%%%%%%%%%%%%% Begin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\centerline{\titlebold
An Inexcusable Assignment about Hyphenation,
that Contains Numerous \TeX\ Errors}.
%%%%% Note, that even though this title is rediculously long
% TeX will set it without complaining. However when you
% print it the impress will rudely remind you about characters
% falling off the edge of the page.
Computers show notorious ineptitude at hyphenation.
\TeX\ attempts to subdivide manuscript text into syllables when alternative
strategies for filling and justifying text fail.
It hyphenates a word by first looking for it in an ``exception dictionary''.
If the word isn't there, \TeX\ looks for {\sl patterns} in the word from its
``pattern dictionary''---{\sl Appendix H} explains this in excruciating
detail.
Ninety-five percent of permissible hyphenation points are discovered
by this algorithm.
Your assignment is to modify this exercise so that it executes without
{\tt overfull box} error-messages.
Read through it and modify it, then try to run it.
Repeat this until you're satisfied with the results.
We'd like to see what you did with them when you're done.
There are several places where \TeX\ will set text with neither
line breaks or hyphens inserted.
${\rm ``hboxes'' are unbreakable. They occur in the {\tt \char'134
centerline\ } macro, for example. Likewise with ``math mode'' text.}$
Neither will hyphens be inserted into proper names or any words
enclosed in quotation marks or containing capital letters or non-letter
characters.
Proper names also often contain ties, creating long unbreakable
blocks.
You have several options to make this work. You can show where hyphens
should go if \TeX\ doesn't find the right places by inserting
dis\-cre\-tionary hy\-phens.
But take care to put them in all places they can appear when you do
this to a word, since \TeX\ will not try to hyphenate a word in other
places than where you have indicated to it.
Also you may indicate a word's hyphenation just once for the whole
document by putting the word in the ``exception dictionary'' with the
{\tt \char'134 hyphenation } command.
Be careful to not place regular hyphens at the end of a line with-
in a word, because when the line is reset the two halves will be adja-
cent to each other within a line and the hyphen will {\sl not} be removed!
Recall that lines that end with hyphens or dashes have spaces inserted
after them.
As you saw in the first assignment there are several parameters set
by {\tt plain.tex} that affect how lines are set. Changing these affects
how sloppy your output can become before it's considered an error. Thus
you have to make a trade-off between hand-crafting lines and loosening up
the standards for your document. In addition to the parameters I have put
out-of-whack in the beginning of this document, there are others that assign
``demerits'' to lines adjacent to those ending with hyphens. This discourages
a hyphenated line next to the last line of a paragraph or another hyphenated
line. See Chapter~14, p.~98 for details.
Your last resort when none of the above strategies gives you what you want
is to rewrite the text so that the words it contains fit on the line! You
have probably noticed that this assignment's sentences are so verbose and
pedantic that you should not hesitate to change wordings. As if you haven't
seen enough here's another example to work on:
\medskip
The Distributed V~Kernel and its Performance for Diskless Workstations, by
Willy Zwaenepoel and the Distributed Systems Group, in 9{\it $↑{\rm th}$
Symposium on Operating Systems Principles}. October~1983.
\bye